﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AMStudio.DelegateDispather;
//using Microsoft.Practices.Unity;

namespace AMStudio.Driver
{
    public interface IExecuteReader
    {
        bool Success { get; set; }
        object Result { get; set; }
    }
    public class ExecuteReader : IExecuteReader
    {
        private bool success;
        public bool Success
        {
            get { return success; }
            set { success = value; }
        }
        private object result;
        public object Result
        {
            get { return result; }
            set { result = value; }
        }

        public ExecuteReader(bool result)
        {
            success = result;
        }
    }
    public interface IAutomationDriver
    {
        string HardwareName { get; set; }
        string HardwareEvent { get; set; }
        IEventClient EventClient { get; set; }
        int ExecuteNonQuery(string command, params object[] parameters);
        IExecuteReader ExecuteReader(string command, params object[] parameters);
    }
}
